<!DOCTYPE html>
<html lang="en">

<head>
    <{include file="header.html" }>
        <title>分类设置-课程管理-
            <{$user_data[ 'school_name']}>-德安信会计在线教育平台</title>
</head>

<body>
    <div class="wrap">
        <!--star left-->
        <div class="column">
            <{include file="left_menu.html" }>
        </div>
        <div id="ContMianBox">
            <!--star子栏目-->
            <div class="sub-colum">
                <div class="tit"><{$left_menu_min.menu}></div>
                <ul>
                    <{foreach from=$left_menu_min.list item=item}>
                    <li <{if $item['url'] == $left_menu_min.curr}>class="curr"<{/if}>><a href="<{$item['url']}>"><{$item['name']}></a></li>
                    <{/foreach}>
                </ul>
            </div>
            <!--end子栏目-->
            <!--end left-->
            <div class="container narrow">
                <!--star conter-->
                <div class="cetContent">
                    <div class="tit p-lr20">
                        <span><a href="/course">视频课</a></span>
                        <span><a href="/course/video">视频库</a></span>
                        <span><a href="/course/cate_subject_list">视频课科目</a></span>
                        <span class="curr"><a href="/course/cate_list">视频课分类</a></span>
                    </div>
                </div>
                <!--star内容区域-->
                <div class="mainScroll">
                    <div class="mainContainer line-all">
                        <!--star tabMainCont-->
                        <div class="tabMainCont">
                            
                            <fieldset class="layui-elem-field">
                                <legend>按条件搜索</legend>
                                <div class="layui-field-box">
                                    <form class="layui-form layui-form-pane1" method="post" action="<{$current_url}>">
                                        <{assign var="pid" value=$conditions['pid']|default:"all"}>
                                        <div class="layui-form-item">
                                            <div class="layui-inline">
                                                <input type="text" name="category[search]" placeholder="搜索内容" value="<{if $data['search']}><{$data['search']}><{/if}>" class="layui-input">
                                            </div>
                                            <div class="layui-inline">
                                                <button type="submit" class="layui-btn">搜索</button>
                                                <a class="layui-btn" href="/course/cate_publish"><i class="layui-icon"></i> 添加网课分类</a>
                                            </div>
                                        </div>
                                    </form>
                                </div>
                            </fieldset>
                            <!--商品列表 star-->
                            <div class="goods_list p-t10">
                                <div class="mtc_tab">
                                    <!--star mt-->
                                    <div class="mt">
                                        <!-- <span class="l fs16">类型：</span> -->
                                        <a href="/course/cate_list/<{$data.search}>/0" class="curr">视频课分类</a>
                                        
                                       
                                    </div>
                                    <!--end mt-->
                                    <!--star mc-->
                                    <div class="mc">

                                        <div class="u_table_list m-t20">
                                            <!--star 商品-->
                                            <div class="table002">
                                                <table>
                                                    <colgroup>
                                                        <col width="4%">
                                                        <col width="26%">
                                                        <col >
                                                        <col >
                                                        <col >
                                                        <col >
                                                        <col >
                                                    </colgroup>
                                                    <tbody>
                                                        <tr>
                                                            <th><input type="checkbox"></th>
                                                            <th>分类名</th>
                                                            <th>排序</th>
                                                            <th>类型</th>
                                                            <th>上架时间</th>
                                                            <th>状态</th>
                                                            <th>操作</th>
                                                        </tr>
                                                    </tbody>
                                                    <tbody>
                                                        <{foreach from=$list item=item}>
                                                            <tr>
                                                                <td class="not_lb tal"><input type="checkbox"></td>
                                                                <td class="not_lb tal"><{$item.name}>
                                                                </td>
                                                                <td class="not_lb tal"><span class="c-ff6d5e"><{$item.sort}></span></td>
                                                                <td class="not_lb tal">
                                                                  <{if $item.type == 1}>
                                                                  视频课
                                                                  <{elseif $item.type==2}>
                                                                  面授课
                                                                  <{elseif $item.type==3}>
                                                                  直播课
                                                                  <{/if}>
                                                                </td>
                                                                <td class="not_lb tal">
                                                                    <{$item[ 'add_time']|date_format: '%Y-%m-%d <br> %H:%M:%S'}></td>
                                                                <td class="not_lb tal">
                                                                    <div class="colorBtn">
                                                                        <p><span><{if $item.status == 1}>启用<{else}>禁用<{/if}></span></p>
                                                                    </div>
                                                                </td>
                                                                <td class="not_lb tal">
                                                                    <div class="colorBtn">
                                                                        <p><a href="/course/edit_course_cate/<{$item.id}>">编辑</a></p>

                                                                        <p><a onclick="return confirm('您确定要删除分类吗')" href="/course/delete_course_cate/<{$item.id}>">删除</a></p>
                                                                    </div>
                                                                </td>
                                                            </tr>
                                                            <{/foreach}>
                                                    </tbody>
                                                </table>
                                            </div>
                                            <!--end 商品-->
                                        </div>
                                        <div class="pages p-tb20" style="text-align:right;">
                                            <!-- <div class="l">
                                    <a href="javascript:;" class="zent-btn">未知按钮</a>
                                    <a href="javascript:;" class="zent-btn">未知按钮</a>
                                    <a href="javascript:;" class="zent-btn">未知按钮</a>
                                    <a href="javascript:;" class="zent-btn">未知按钮</a>
                                </div> -->
                                            <div class="pages p-tb20">
                                                <{$pagination}>
                                            </div>
                                        </div>
                                    </div>
                                    <!--end mc-->
                                </div>

                            </div>
                            <!--商品列表 end -->
                        </div>
                        <!--end tabMainCont-->
                    </div>

                </div>
            </div>
            <!--end内容区域-->
            <{include file="footer.html"}>